On Complete Completion using Types and Weights

نویسندگان

  • Tihomir Gvero
  • Viktor Kuncak
  • Ivan Kuraj
  • Ruzica Piskac
چکیده

Developing modern software applications typically involves composing functionality from existing libraries. This task is difficult because libraries may expose many methods to the developer. To help developers in such scenarios, we present a technique that synthesizes and suggests valid expressions of a given type at a given program point. As the basis of our technique we use type reconstruction for lambda calculus terms in long normal form. We introduce a succinct representation for type judgements that merges types into equivalence classes to reduce the search space, then reconstructs any desired number of solutions on demand. Furthermore, we introduce a method to rank solutions based on weights derived from a corpus of code. We implemented the algorithm and deployed it as a plugin for the Eclipse IDE for Scala. We show that the techniques we incorporated greatly increase the effectiveness of the approach. Our evaluation benchmarks are derived from real code and are made available for future benchmarking of code synthesis driven by types.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Improving Exemplar-based Image Completion methods using Selecting the Optimal Patch

Image completion is one of the subjects in image and video processing which deals with restoration of and filling in damaged regions of images using correct regions. Exemplar-based image completion methods give more pleasant results than pixel-based approaches. In this paper, a new algorithm is proposed to find the most suitable patch in order to fill in the damaged parts. This patch selection ...

متن کامل

باز پس گرفته شده: وضعیت تکمیل اوراق اختصاصی اعمال جراحی بیمارستان های دانشگاهی ارومیه (سال 1382)

Introduction: Information documented in the medical records includes demographic Factors, history, examinations and treatment. Information documented in the health record file has impressive Effect on the quality of care and treatment of patients. The pieces of information concerning patients who need operation are completed in special operation sheet that should be exact, on time and complete....

متن کامل

وضعیت تکمیل اوراق اختصاصی اعمال جراحی بیمارستان های دانشگاهی ارومیه (سال 1382)

Introduction: Information documented in the medical records includes demographic Factors, history, examination and treatment. Information documented in the health record file has impressive Effect on the quality of care and treatment of patients. The pieces of information concerning patients who need operation are completed in special operation sheet htat should be exact, on time and complete. ...

متن کامل

Another proof of Banaschewski's surjection theorem

We present a new proof of Banaschewski's theorem stating that the completion lift of a uniform surjection is a surjection. The new procedure allows to extend the fact (and, similarly, the related theorem on closed uniform sublocales of complete uniform frames) to quasi-uniformities ("not necessarily symmetric uniformities"). Further, we show how a (regular) Cauchy point on a closed uniform subl...

متن کامل

The Effect of Drug Abstinence Program on Memory Functioning of Heroin Addicts

Introduction: Most of our knowledge regarding the link between opioid dependence and poor cognitive functioning is derived from cross sectional studies.This longitudinal study measured the change in memory functioning following complete abstinence among individuals with heroin dependence. Methods: Using a before-after design,this study followed 30 adults ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2012